package ntd.action.impl;

import cn.hutool.json.JSONUtil;
import cn.hutool.log.StaticLog;
import ntd.action.ActionAbs;
import ntd.action.bo.ActionOutBo;
import ntd.block.port.NtdPort;
import ntd.action.Action;
import ntd.action.bo.ActionInfo;

import java.util.List;

public class ActionPort extends ActionAbs {

    @Override
    public ActionInfo info() {
        return new ActionInfo("端口检测", "action-port", new ActionPort());
    }

    @Override
    public ActionOutBo handle() {
        List<Integer> integers = NtdPort.listPort();
        return new ActionOutBo(integers);
    }

}
